<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link th:href="@{/assets/css/bootstrap.min.css}" rel="stylesheet" />
    <link rel="stylesheet" th:href="@{/assets/css/font-awesome.min.css}" />
    <!--[if IE 7]>
    <link rel="stylesheet" th:href="@{/assets/css/font-awesome-ie7.min.css}" />

    <![endif]-->
    <!--<link rel="stylesheet" href="http://fonts.useso.com/css?family=Open+Sans:400,300" />-->
    <link rel="stylesheet" th:href="@{/assets/css/ace.min.css}" />
    <link rel="stylesheet" th:href="@{/css/style.css}"/>
    <script th:src="@{/assets/js/jquery.min.js}"></script>
    <title>法规列表</title>
</head>

<style>
    .sgBtn{width: 135px; height: 35px; line-height: 35px; margin-left: 10px; margin-top: 10px; text-align: center; background-color: #0095D9; color: #FFFFFF; float: left; border-radius: 5px;}
    .add{
        line-height: 20px;
        color: #555;
        font-family: Helvetica, Georgia, Arial, sans-serif, 宋体;
        font-size: 13px;
        margin: 0 10px;
    }
    .control-group{
        line-height: 20px;
        color: #555;
        font-family: Helvetica, Georgia, Arial, sans-serif, 宋体;
        font-size: 13px;
        padding-bottom: 8px;
        border-bottom: 1px dotted #dddddd;
        margin-bottom: 8px;
    }
    .control-label{
        color: #555;
        cursor: pointer;
        font-weight: normal;
        line-height: 20px;
        font-family: Helvetica, Georgia, Arial, sans-serif, 宋体;
        font-size: 13px;
        display: inline-block;
        margin-bottom: 0;
        float: left;
        width: 160px;
        text-align: right;
        padding-top: 3px;
    }
    .controls{
        line-height: 20px;
        color: #555;
        font-family: Helvetica, Georgia, Arial, sans-serif, 宋体;
        font-size: 13px;
        margin-left: 180px;
        text-align: left;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .help-inline{
        line-height: 20px;
        font-family: Helvetica, Georgia, Arial, sans-serif, 宋体;
        font-size: 13px;
        text-align: left;
        padding-left: 5px;
        color: #aaaaaa;
        display: inline-block;
        margin-bottom: 0;
        vertical-align: middle;
    }
    button{
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        list-style: none outside none;
        box-sizing: border-box;
        margin: 0;
        text-transform: none;
        cursor: pointer;
        font-size: inherit;
        font-style: inherit;
        font-weight: inherit;
        font-family: "Microsoft YaHei";
        height: 32px;
        background-image: linear-gradient(to bottom,#3b98d6 0,#197ec1 100%)!important;
        background-repeat: repeat-x!important;
        line-height: 32px;
        border: 0px;
        width: 60px;
        text-align: center;
        color: #FFF;
        -webkit-border-radius: 3px;
    }
    .form-actions{
        line-height: 20px;
        color: #555;
        font-family: Helvetica, Georgia, Arial, sans-serif, 宋体;
        font-size: 13px;
        padding: 19px 20px 20px;
        margin-top: 20px;
        background-color: #f5f5f5;
        border-top: 1px solid #e5e5e5;
        padding-left: 180px;
        margin-bottom: 0;
    }

    #tiaokuanneirong button{
        background-image: linear-gradient(to bottom,white 0,white 100%)!important;
    }
</style>
<body>
<div class="page-content">
    <!--待确认订单样式-->
    <div class="d_Confirm_Order_style">
        <div class="row">
            <div class="col-xs-12">
                <h3 class="header smaller lighter blue" style="display: inline-block"><a th:href="@{/findlaws}">法规列表</a> </h3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <h3 class="header smaller lighter blue" style="display: inline-block"><a th:href="@{/addlaws}">添加法规</a> </h3>
                <div class="table-header"></div>


                <input type="hidden" name="id" th:value="${laws.id}">
                <div class="control-group">
                    <label class="control-label">法规部号：</label>
                    <div class="controls">
                        <input id="lawPartNumber" name="partNumAlias" th:value="${laws.partNumAlias}" class="input-xlarge required digits" type="text" value="" maxlength="11">
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">部号版本号：</label>
                    <div class="controls">
                        <input id="lawPartAlias" name="lawsVersion" th:value="${laws.lawsVersion}" class="input-xlarge " type="text" value="" maxlength="128">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">法规名称：</label>
                    <div class="controls">
                        <input id="lawVersion" name="lawsName" th:value="${laws.lawsName}" class="input-xlarge " type="text" value="" maxlength="64">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">是否显示：</label>
                    <div class="controls">
                        <span><input id="showStatus1" name="lawsIsplay" class="required" type="radio" value="1" th:checked="${laws.lawsIsplay==1}"><label for="showStatus1">显示</label></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <span><input id="showStatus2" name="lawsIsplay" class="required" type="radio" value="0" th:checked="${laws.lawsIsplay==0}"><label for="showStatus2">不显示</label></span>
                        <span class="help-inline"><font color="red">*</font> </span>
                    </div>
                </div>
                <!--                    <div class="control-group">-->
                <!--                        <label class="control-label">首页法规图标：</label>-->
                <!--                        <div class="controls">-->
                <!--                            <input id="lawLogoUrl" name="lawsPicture" maxlength="256" onchange="Javascript:validate_img(this);" class="input-xlarge" type="hidden" value="">-->

                <!--                            <ol id="lawLogoUrlPreview">-->


                <!--                            </ol>-->
                <!--                             <input type="file" name="id_pic">-->

                <!--                            <span class="help-inline">图片格式：jpg/png,图片尺寸：90*90px<font color="red">*</font> </span>-->
                <!--                        </div>-->
                <!--                    </div>-->
                <!--                    <div class="control-group">-->
                <!--                        <label class="control-label">法规PDF文件名称：</label>-->
                <!--                        <div class="controls">-->
                <!--                            <input id="lawPdfTitle" name="lawsPdfName" class="input-xlarge " type="text" value="">-->
                <!--                        </div>-->
                <!--                    </div>-->

                <!--                    <div class="control-group">-->
                <!--                        <label class="control-label">法规PDF文件下载链接：</label>-->
                <!--                        <div class="controls">-->
                <!--                            <input id="lawPdfDlLink" name="lawsPdfDownload" class="input-xlarge" type="text" value="">-->
                <!--                        </div>-->
                <!--                    </div>-->

                <!--                    <div class="control-group">-->
                <!--                        <label class="control-label">法规PDF文件链接：</label>-->
                <!--                        <div class="controls">-->
                <!--                            <input id="lawPdfDlUrl" name="lawsPdfFilesrc" class="input-xlarge" type="text" value="" maxlength="50000">-->
                <!--                        </div>-->
                <!--                    </div>-->


                <div class="control-group" id="tiaokuanneirong">
                    <label class="control-label">法规版本说明：</label>
                    <div id = "tinymce_demo">
                        <p th:text="${laws.lawsVersionExplain}"></p>
                    </div>
                </div>
                <div class="form-actions">
                    <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存" onclick="baocun()">&nbsp;
                    <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)">
                </div>

                <script>
                    function baocun(){
                        var activeEditor = tinymce.activeEditor;
                        var editBody = activeEditor.getBody();
                        activeEditor.selection.select(editBody);
                        var lawsVersionExplain = activeEditor.selection.getContent( {'format' : 'text' } );
                        var partNumAlias = $("[name='partNumAlias']").val();
                        var  lawsVersion= $("[name='lawsVersion']").val();
                        var  lawsName= $("[name='lawsName']").val();
                        var  lawsIsplay= $("[name='lawsIsplay']").val();
                        var  id= $("[name='id']").val();
                        alert(partNumAlias);
                        location.href="/toupdatelaw?id="+id+"&partNumAlias="+partNumAlias+"&lawsVersion="+lawsVersion+"&lawsName="+lawsName+"&lawsIsplay="+lawsIsplay+"&lawsVersionExplain="+lawsVersionExplain+"";
                    }
                </script>
            </div>
        </div>
    </div>
</div>
<!--扫描件浏览样式-->
<div class="Scan_style" id="Scan" style="display:none">
    <img src="images/1.jpg" />
</div>
<!--异常处理样式-->
<div class="abnormal_style" id="abnormal" style="display:none">
    <ul class="add_reason">
        <li><label><input name="form-field-checkbox" type="checkbox" class="ace"  checked="checked"><span class="lbl">油品的质量</span></label></li>
        <li><label><input name="form-field-checkbox" type="checkbox" class="ace" ><span class="lbl">加油数量不符</span></label></li>
        <li>原因说明：<textarea name="异常原因说明" cols="" rows="" id="textarea"  style="width:350px; height:150px;"></textarea></li>
    </ul>
    <!--  <div class="center"><button type="button" class="btn btn-primary btn_search" id="btn_search">提交</button></div>-->
</div>
<!--评分样式-->
<div id="score_style" style="display:none">
    <div class="page-content">
        <ul class="score_style">
            <li class="clearfix scores">
                <p style="font-size:20px" class="lf label_name">油品：</p>
                <div id="star1" class="lf"></div>
                <div id="result1" class="lf Rating"></div>
            </li>
            <li class="score_prompt">你对加油后油的质量的评价，这对日后选择供应商很重要。</li>
            <li class="clearfix scores">
                <p style="font-size:20px" class="lf label_name">服务：</p>
                <div id="star2" class="lf"></div>
                <div id="result2" class="lf Rating"></div>

            </li>
            <li class="score_prompt">你对在加油过程中对供应商的服务评价，这对日后选择供应商很重要</li>
            <li class="clearfix scores">
                <p style="font-size:20px" class="lf label_name">其他：</p>
                <div id="star3" class="lf"></div>
                <div id="result3" class="lf Rating"></div>

            </li>
            <li class="score_prompt">你还对在加油过程中的其他服务评价，这对日后选择供应商很重要</li>
        </ul>
        <!--<div class="center"><button type="button" class="btn btn-primary" id="score_btn">确认评价</button></div>-->
    </div>
</div>
<!--END-->
<!--[if !IE]> -->

<!-- <![endif]-->
<!--[if !IE]> -->
<script type="text/javascript">
    window.jQuery || document.write("<script th:src='@{/assets/js/jquery-2.0.3.min.js}'>"+"<"+"/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
    window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->









<script type="text/javascript">
    if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script th:src="@{/assets/js/bootstrap.min.js}"></script>
<script th:src="@{/js/jquery.raty.js}" type="text/javascript"></script>
<script th:src="@{/assets/layer/layer.js}" type="text/javascript" ></script>
<script th:src="@{/assets/laydate/laydate.js}" type="text/javascript"></script>
<script th:src="@{/tinymce/tinymce.min.js}" type="text/javascript"></script>
<script type="text/javascript">
    $(function (){
        $("#btn_search").click(function (){
            alert("aaaa");
            $("#subform").submit();
        })
    })




</script>

<script type="text/javascript">

    tinymce.init({
        selector: '#tinymce_demo', //容器，可使用css选择器
        language:'zh_CN', //调用放在langs文件夹内的语言包
        toolbar: true, //工具栏
        menubar: true, //菜单栏
        branding:false, //右下角技术支持
        inline: false, //开启内联模式
        elementpath: false,
        min_height:400, //最小高度
        height: 800,  //高度
        skin: 'oxide',
        toolbar_sticky:true,
        visualchars_default_state:true, //显示不可见字符
        image_caption: true,
        paste_data_images: true,
        relative_urls : false,
        // remove_script_host : false,
        removed_menuitems: 'newdocument',  //清除“文件”菜单
        plugins: "lists,hr, advlist,anchor,autolink,autoresize,charmap,code,codesample,emoticons,fullscreen,image,media,insertdatetime,link,pagebreak,paste,preview,print,searchreplace,table,textcolor,toc,visualchars,wordcount", //依赖lists插件
        toolbar: 'bullist numlist anchor charmap emoticons fullscreen hr image insertdatetime link media pagebreak paste preview print searchreplace textcolor wordcount',
        //选中时出现的快捷工具，与插件有依赖关系
        images_upload_url:'a.php', /*后图片上传接口*/ /*返回值为json类型 {'location':'uploads/jpg'}*/
        setup: function(editor){
            editor.on('change',function(){ editor.save(); });
        }
    });
</script>

</body>
</html>
